package my.file.json.jackson;

import org.junit.Test;

import com.fasterxml.jackson.databind.JsonNode;

public class AppTest {
	@Test
	public void Test01(){
		String json = "[{\"name\":\"jack\",\"address\":\"纽约\"},{\"name\":\"luck\",\"address\":\"杭州\"}]";
		JsonNode jsonNode = JsonUtil.getJsonNode(json);
		System.out.println(jsonNode);
		System.out.println(JsonUtil.getJsonNodeValue(json, "address"));//输出第一个address
	}
}
